package com.itheima.excel.controller;

import com.itheima.excel.util.ImportExcel;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;

public class Import {

    /*
    导入
     */
    public static void importExcel() throws IOException {
        long start = System.currentTimeMillis();
        List<String[]> strings = ImportExcel.readExcel(new File("system\\message\\20220124000229.xls"));
        for (String[] string : strings) {
            System.out.println(Arrays.toString(string));
        }
        long end = System.currentTimeMillis();
        System.out.println("导入excel的毫秒数为" + (end - start));
    }

}
